<template>
  <div class="goods">
    <cate-goods-item
      class="goods-item"
      v-for="(item, index) in subcategories"
      :key="index"
      :goodsitem="item"
    />
  </div>
</template>

<script>
import CateGoodsItem from "./CateGoodsItem.vue";
export default {
  components: { CateGoodsItem },
  props: {
    subcategories: {
      type: Array,
      default() {
        return [];
      },
    },
  },
};
</script>

<style scoped>
.goods {
  margin-top: 10px;
  width: 275px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}
.goods-item {
  flex: 1;
}
</style>